package com.beasts.antpage.sh.repository;

import com.beasts.antpage.sh.entity.APGroupPage;
import com.beasts.antpage.sh.entity.APHomePage;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author cn_zkn
 * @date 20/04/2018 11:04 AM
 * @since 1.0
 */
public interface APHomePageRepository extends JpaRepository<APHomePage, Long> {

    @Select("select p from ap_home_page p where p.page_order=#{order}")
    List<APHomePage>  queryByPageOrder(String order);


}
